package com.xmall.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xmall.define.dto.login.PermissionTreeDto;
import com.xmall.sys.define.request.permission.PermissionQueryRequest;
import com.xmall.sys.entity.Permission;

import java.util.List;

public interface IPermissionService extends IService<Permission> {

    /**
     * 权限树
     */
    List<PermissionTreeDto> treeList(PermissionQueryRequest request);

    /**
     * 生成树结构
     */
    List<PermissionTreeDto> createTree(List<Permission> permissions);
}
